FROM nginx:latest

RUN sed -i "/location \/ {/i\    location = /server_status {" /etc/nginx/conf.d/default.conf \
    && sed -i "/location \/ {/i\        stub_status;" /etc/nginx/conf.d/default.conf \
    && sed -i "/location \/ {/i\    }\n" /etc/nginx/conf.d/default.conf
